<a href="getAllDraft.php" target="hiddenFrame">Get All Rounds</a>
<div id="draftDiv">
<table align="center" width="80%">
			<tr>
	<c:set var="lastRound" value="0" />
	<? 
	$lastRound = 0;
	$draftItems = getDraft($leagueId, false);
	$count = count($draftItems);
	for ($i = 0; $i < $count; $i++) {
		if ($draftItems[$i]->round != $lastRound) {
		?>
	<tr>
		<td colspan="3"><br><br><b><font size="3">Round <?echo $draftItems[$i]->round?></font></b><br><br></td>
	</tr>
	<?$lastRound = $draftItems[$i]->round;
	}
	?>
	<tr>
		<?if ($draftItems[$i]->pickNumber == $currentPick) {?>
			<td width="5%"><b>#<?echo $draftItems[$i]->pickNumber?></b></td>
			<td width="10%"><b><?echo $draftItems[$i]->coachName?></b></td>
			<td width="60%"></td>
		<?} else {?>
			<td width="5%">#<?echo $draftItems[$i]->pickNumber?></td>
			<td width="10%"><?echo $draftItems[$i]->coachName?></td>
			<?if ($draftItems[$i]->state == 'PICKED' || $draftItems[$i]->state == 'PICKED_INFORMED') {?>
				<td width="40%"><?echo getPlayerDisplayForPlayer($draftItems[$i]->player)?></td>
		<?	}
		    else if ($draftItems[$i]->state == 'SKIPPED' || $draftItems[$i]->state == 'SKIPPED_INFORMED') {?>
		    	<td width="60%"><font color="red">SKIPPED</font></td>
		    <?}
		}?>
	</tr>
	<?}?>
</table>
</div>